package com.feihao.zhou.restFul;

import com.feihao.zhou.domain.User.User;
import org.springframework.web.bind.annotation.*;

@RestController
public class RestFulTest {

//    @RequestMapping("/test/{id}")
    @GetMapping("/test/{id}")
    public void test01(@PathVariable Integer id){
        System.out.println("get"+id);
    }



    @PostMapping("/test/{id}")
    public void test02(@PathVariable Integer id){
        System.out.println("post"+id);
    }

    @PutMapping("/test/{user}")
    public void test03(@PathVariable User user){
        System.out.println(user);
    }
}
